<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title><?php echo $this->_lang['change_password']; ?> - <?php echo $this->_lang['site_title']; ?></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="<?php echo $_config['url']['css']; ?>base.css" rel="stylesheet" type="text/css">
  <script type="text/javascript">
  <!--
	function check_form()
	{
		var f = document.getElementById('f');
		if( f.old_password.value == '' )
		{
			alert('<?php echo $this->_lang['old_password_not_empty']; ?>');
			f.old_password.focus();
			return false;
		}
		else
		{
			if( f.old_password.value.length > 15 || f.old_password.value.length < 6 )
			{
				alert('<?php echo $this->_lang['old_password_wrong_format']; ?>');
				f.old_password.focus();
				return false;
			}
		}

		if( f.password.value == '' )
		{
			alert('<?php echo $this->_lang['password_not_empty']; ?>');
			f.password.focus();
			return false;
		}
		else
		{
			if( f.password.value.length > 15 || f.password.value.length < 6 )
			{
				alert('<?php echo $this->_lang['passoword_wrong_format']; ?>');
				f.password.focus();
				return false;
			}
		}

		if( f.password2.value == '' )
		{
			alert('<?php echo $this->_lang['repeat_password_not_empty']; ?>');
			f.password2.focus();
			return false;
		}
		else
		{
			if( f.password2.value.length > 15 || f.password2.value.length < 6 )
			{
				alert('<?php echo $this->_lang['repeat_password_wrong_format']; ?>');
				f.password2.focus();
				return false;
			}
		}

		if( f.password.value != f.password2.value )
		{
			alert('<?php echo $this->_lang['two_password_not_match']; ?>');
			f.password.focus();
			return false;
		}

		f.submit.disabled = true;
		return true;
	}
  //-->
  </script>
 </head>

 <body>
 <div id="mask">
<?php echo $layout_header; ?>
<div style="margin:0 auto;width:550px;padding-top:25px;">
 <fieldset style="width:550px; border:1px solid #A5A5A5;text-align:left;font-size:12px;font-family:Verdana;padding:15px;">
 <legend style="color:#A5A5A5;font-size:16px;"><?php echo $this->_lang['change_password']; ?></legend>
<table border="0" width="550" align="center" cellpadding="0" cellspacing="0">
<form id="f" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" onSubmit="javascript:return check_form();">
<tr>
		<td style="background-color:#CCCCCC"><table id="innerTable" border="0" width="100%" align="center" cellpadding="5" cellspacing="0">
	<tr>
		<td width="100" style="background-color:#FFFFFF;"><?php echo $this->_lang['old_password']; ?><?php echo $this->_lang['colon']; ?></td>
		<td style="background-color:#FFFFFF;"><input type="password" name="old_password" id="old_password" maxlength="15"/> * <?php echo $this->_lang['password_format']; ?></td>
	</tr>
	<tr>
		<td style="background-color:#FFFFFF;"><?php echo $this->_lang['new_password']; ?><?php echo $this->_lang['colon']; ?></td>
		<td style="background-color:#FFFFFF;"><input type="password" name="password" id="password" maxlength="15" /> * <?php echo $this->_lang['password_format']; ?></td>
	</tr>
	<tr>
		<td style="background-color:#FFFFFF;"><?php echo $this->_lang['repeat_new_password']; ?><?php echo $this->_lang['colon']; ?></td>
		<td style="background-color:#FFFFFF;"><input type="password" name="password2" id="password2" maxlength="15"/> * </td>
	</tr>
	<tr>
		<td style="background-color:#FFFFFF;">&nbsp;</td>
		<td style="background-color:#FFFFFF;"><input type="submit" name="submit" id="submit" value="<?php echo $this->_lang['submit']; ?>" /></td>
	</tr>
</table>
</td>
	</tr>
	</form>
</table>
</fieldset>
</div>
<?php echo $layout_footer; ?>
</div>
</body>
</html>
